﻿#include "chessUtill.h"
#include <QUuid>

ChessUtill::ChessUtill()
{
}

QString ChessUtill::generatePlayerId() {
    // 创建一个随机的UUID
    QUuid uuid = QUuid::createUuid();

    // 转换为字符串（不带大括号）
    QString playerId = uuid.toString(QUuid::WithoutBraces);

    return playerId;
}


ChessUtill::~ChessUtill()
{
}


